#ifndef __TIMER0_H_
#define __TIMER0_H_

//定义枚举类型
typedef enum 
{
  TIMER_10MS      =  (uint16_t)2,
  TIMER_20MS      =  (uint16_t)4,
  TIMER_50MS      =  (uint16_t)10,
  TIMER_100MS     =  (uint16_t)20,
  TIMER_200MS     =  (uint16_t)40,
  TIMER_500MS     =  (uint16_t)100,
  TIMER_1S        =  (uint16_t)200,
  TIMER_2S        =  (uint16_t)400,
  TIMER_5S        =  (uint16_t)1000,
  TIMER_10S       =  (uint16_t)2000,
  TIMER_3MIN      =  (uint16_t)36000
}Timer_Value_t;

//结构体类型定义
typedef struct 
{
    uint16_t volatile  msMCU_Timer0_Value;   //系统运行定时器
    uint16_t volatile  usDelay_Timer;        //延时定时器
    
    void (*Timer0_Init)();
}Timer0_t;

/* extern variables-----------------------------------------------------------*/
extern Timer0_t idata Timer0;
/* extern function prototypes-------------------------------------------------*/ 

#endif
/********************************************************
  End Of File
********************************************************/
